package com.objectcarpentry.kaylee.ui.provider;

import java.util.Collection;

import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.ecore.EStructuralFeature;

import com.objectcarpentry.kaylee.KayleePackage;
import com.objectcarpentry.kaylee.provider.LibraryItemProvider;

public class PlaylistsViewLibraryItemProvider extends LibraryItemProvider {

	public PlaylistsViewLibraryItemProvider(AdapterFactory adapterFactory) {
		super(adapterFactory);
	}
	
	/**
	 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
	 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
	 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
		if (childrenFeatures == null) {
			super.getChildrenFeatures(object);
			childrenFeatures.add(KayleePackage.Literals.LIBRARY__PLAYLISTS);
		}
		return childrenFeatures;
	}
	
}
